package com.springboot.demo.entity;

import com.springboot.demo.entity.validate.user.IdGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author wubc683
 * @desc
 * @date 2021-11-08 17:20
 */
@Data
public class MenuGroup {
    @ApiModelProperty(value = "菜单id",required = true)
    @NotNull(message = "菜单id不能为null")
    private Long id;
    @ApiModelProperty("菜单名")
    private String name;
    @ApiModelProperty("菜单上级目录id,顶层菜单的parentId为0")
    private Long parentId;
    @ApiModelProperty("管理员特有菜单,0为不是，1为是")
    private Boolean onlyAdmin;
    @ApiModelProperty("前置菜单，即使用该菜单必须有前置菜单权限")
    private Long preMenuId;
    @ApiModelProperty("菜单能否折叠")
    private Boolean canFold;
    @ApiModelProperty(value = "菜单是否被选择",required = true)
    @NotNull(message = "是否选择标志不能为null")
    private Boolean selected;
}
